/**
 * @author MIAO
 * Created on 2011-11-13
 * For more information, please visit:ismiao.com
 */
package com.ismiao.java.Callback;
//测试执行方法消耗时间
public class TestTools {
	public static void main(String[] args) {

		Tools tool = new Tools();
		tool.getTime(new Callback() {
			public void executeMethod() {
				new TestTools().testMethod();
			}
		});

	}

	public void testMethod() {
		for (int i = 0; i < 10000; i++) {
			System.out.print("");
		}
	}
}
